<?php

namespace App\Api\Http\Controllers\V1\In;

use Illuminate\Http\Request;
use App\Api\Http\Controllers\Controller;

class LogoutController extends Controller{
    /*
     * 退出登录，重新生成SID
     */
    public function out(Request $request){
        session()->flush();
        session()->regenerate();
        return $this->my_jsonp($request->input('callback'));
    }
}